Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moving tabify to data.search #57453

Closed
wants to merge 4 commits into from
Closed

Conversation

ppisljar
Copy link
Member

Summary

moving tabify to data.search

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@ppisljar ppisljar requested a review from a team as a code owner February 12, 2020 14:56
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@kibanamachine
Copy link
Contributor

💔 Build Failed

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

import { tabifyGetColumns } from '../_get_columns';
import { Vis } from '../../../../../core_plugins/visualizations/public';
import FixturesStubbedLogstashIndexPatternProvider from 'fixtures/stubbed_logstash_index_pattern';
import stubbedLogstashIndexPatternService from '../../../../../../fixtures/stubbed_logstash_index_pattern';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind dropping the __tests__ folder, if we're at it?

@@ -20,3 +20,5 @@
export * from './aggs';
export { getRequestInspectorStats, getResponseInspectorStats } from './utils';
export { serializeAggConfig } from './expressions/utils';
// @ts-ignore
export { tabifyAggResponse, tabifyGetColumns } from '../../common/tabify';
Copy link
Contributor

@lizozom lizozom Feb 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any consumer within the plugin can import from common and externally, it will be imported from the index.ts file
So I don't think we really need to re-export this.


return columns;
}
export { tabifyGetColumns } from '../../../../core_plugins/data/public';
Copy link
Contributor

@lizozom lizozom Feb 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get rid this of this file all together and use this import from src/legacy/ui/public/agg_response/index.js?
This will not require changes in multiple places.

Same goes for src/legacy/ui/public/agg_response/tabify/tabify.ts

@@ -81,4 +81,7 @@ export {
// search_source
getRequestInspectorStats,
getResponseInspectorStats,
// tabify
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, if we're at it. what is tabify?
As this is pretty old code, would you mind adding a couple of sentences on what it is used for?

@alexwizp
Copy link
Contributor

This PR is a part of #57660.

@ppisljar ppisljar closed this Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants